<include file="Layouts:header"/><!-- BEGIN BODY -->
<body class="page-header-fixed">
<!-- BEGIN HEADER -->
<div class="header navbar navbar-inverse navbar-fixed-top">
    <include file="Layouts:navigator"/>
</div>
<!-- END HEADER --><!-- BEGIN CONTAINER -->
<div class="page-container row-fluid">
    <include file="Layouts:slider"/>
    <!-- BEGIN PAGE -->
    <div class="page-content">
        <include file="Layouts:bread_crumb"/>
        <div class="container-fluid mb-container" style="background-color: #fff;">
            <div class="tab-content">
                <div class="tab-pane  active">
                    <div class="portlet box">
                        <div class="portlet-body">
                            <?php
                            //if ($isIt == true) {
                            ?>
                            <button id="addMysqlBtn" type="button" class="btn blue">
                                添加MySQL实例
                            </button>
                            <?php
                            //}
                            ?>
                            <div id="sample_2_wrapper" class="dataTables_wrapper form-inline">
                                <table class="table table-striped table-bordered table-hover table-full-width dataTable" width="100%">
                                    <thead>
                                    <tr>
                                        <th width="8%" style="padding:10px;">编号</th>
                                        <th width="8%" style="padding:10px;">主机名</th>
                                        <th width="8%" style="padding:10px;">端口</th>
                                        <th width="8%" style="padding:10px;">环境分级</th>
                                        <th width="8%" style="padding:10px;">角色</th>
                                        <th width="8%" style="padding:10px;">主要用途</th>
                                        <th width="8%" style="padding:10px;">版本</th>
                                        <th width="8%" style="padding:10px;">datadir</th>
                                        <th width="8%" style="padding:10px;">basedir</th>
                                        <th width="8%" style="padding:10px;">参数文件</th>
                                        <th width="8%" style="padding:10px;">启动关闭命令</th>
                                        <th width="8%" style="padding:10px;">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    foreach ($mysqlList as $mysqlId => $mysqlItem) {
                                    ?>
                                    <tr>
                                        <td><?php echo $mysqlItem['id'] ?></td>
                                        <td><?php echo $mysqlItem['hostname'] ?></td>
                                        <td><?php echo $mysqlItem['port'] ?></td>
                                        <td><?php echo $mysqlItem['env_type'] ?></td>
                                        <td><?php echo $mysqlItem['inst_role'] ?></td>
                                        <td><?php echo $mysqlItem['extend_desc'] ?></td>
                                        <td><?php echo $mysqlItem['version'] ?></td>
                                        <td><?php echo $mysqlItem['datadir'] ?></td>
                                        <td><?php echo $mysqlItem['basedir'] ?></td>
                                        <td><?php echo $mysqlItem['conf_path'] ?></td>
                                        <td><?php echo $mysqlItem['command'] ?></td>
                                        <td><a href="<?php echo $mysqlItem['schema_path'] ?>">Schema</a>&nbsp;&nbsp;<a href="<?php echo $mysqlItem['user_path'] ?>">User</a></td>
                                    </tr>
                                    <?php
                                    }
                                    ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- loading start -->
        <div id="loadingBox"
             style="display:none;position: fixed; left: 50%; top: 50%; width: 150px; height: 150px; margin-left: -75px; margin-top: -75px;">
            <img src="/Public/frontapp/media/image/loading-spinner.gif"/>
        </div>
        <!-- loading end -->
        <!-- mask start -->
        <div id="mask" class="modal-backdrop" style="display:none;">
        </div>
        <!-- mask end -->
        <include file="Layouts:add_issue_window"/>
        <include file="Layouts:add_mysql_window"/>
    </div>
    <include file="Layouts:foot_page"/>
    <script type="text/javascript" src="/Public/frontapp/sea.js">
    </script>
    <script type="text/javascript" src="/Public/frontapp/config/config.js">
    </script>
    <script type="text/javascript" src="/Public/frontapp/lib/seajs-text.js">
    </script>
    <script type="text/javascript">
        seajs.use("/Public/frontapp/src/code/mysql.js?v20151110");
    </script>
</body>
<!-- END BODY -->
</html>
